home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 July / CHIP 2006-07.2.iso / program / web_gelistirme / easyphp1-7_setup.exe / {app} / phpmyadmin / scripts / convertcfg.pl < prev    next >
Encoding:
Perl Script  |  2002-04-24  |  412 b   |  20 lines

  1. #!/usr/local/bin/perl
  2. #
  3. # $Id: convertcfg.pl,v 1.1 2002/04/24 19:14:04 robbat2 Exp $
  4. #
  5. # Configuration converter
  6. # Converts from old-style (Pre-2.3) configuration files to new format found in PMA-2.3
  7. #
  8. # Takes input from STDIN, sends output to STDOUT
  9. #
  10. # By Robin Johnson robbat2@users.sourceforge.net
  11. # Many thanks to Patrick Lougheed pat@tfsb.org
  12. #
  13.  
  14. while(<>) 
  15. {    s/\$cfg(\w+)/\$cfg\[\'$1\'\]/g; 
  16.     print; 
  17.     }
  18.  
  19.  
  20.